const app = Vue.createApp({
        data() {
            return{
                    shuanshi:'',
                    num:'',
                    result:''
            }
        },
        methods: {
            btnNum(shu){
                    this.num += shu;
            },
            btnF(fuhao){
                    if(fuhao !== '='){
                            this.shuanshi += this.num + fuhao;
                            this.num = ''
                    }else {
                            this.shuanshi += this.num;
                            this.result = eval(this.shuanshi);
                    }
            },
            clear() {
                    this.num = '';
                    this.shuanshi = '';
                    this.result = '';
            },
            clearCe() {
                    this.num = '';
            }
        },
        computed: {
                newnum() {
                        return this.result.toFixed(2)
                }
        }
})
app.mount('#app')